
package com.sausageking.client.common;

import com.google.gwt.http.client.URL;
import com.sausageking.shared.BaseUtil;

public class ClientUtil extends BaseUtil {

  @Override
  public String encode(String string) {
    return URL.encodePathSegment(string);
  }

  @Override
  public String decode(String string) {
    return URL.decodePathSegment(string);
  }

  @Override
  public void redirect(String url) {
    redirectToUrl(url);
  }

  private static native void redirectToUrl(String url)/*-{
		$wnd.location = url;
  }-*/;
}
